package com.forezp.datastruct.mapdata;

/**
 * 图数据库的中的节点
 * Created by forezp on 2017/12/11.
 */
public class CNode<T> {

    public boolean isVisited;
    public T data;

    public CNode(boolean isVisited, T data) {
        this.isVisited = isVisited;
        this.data = data;
    }

    public CNode(T data) {
        this(false, data);
    }

    @Override
    public String toString() {
        return "CNode{" +
                "isVisited=" + isVisited +
                ", data=" + data +
                '}';
    }
}
